<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>主要内容区main</title>
    <!-- <link href="/loveshow/Public/Css/admin/css.css" type="text/css" rel="stylesheet" />
   <link href="/loveshow/Public/Css/admin/main.css" type="text/css" rel="stylesheet" /> -->
    <link rel="shortcut icon" href="/loveshow/Public/Images/admin/favicon.ico"/>
    <script type="text/javascript" src="/loveshow/Public/Js/admin/jquery.js"></script>
    <script type="text/javascript" src="/loveshow/Public/Js/kindeditor/kindeditor.js"></script>
    <style>
        body {
            overflow-x: hidden;
            background: #f2f0f5;
            padding: 15px 0px 10px 5px;
        }

        ul li {
            list-style: none;
        }

        div {
            float: left;
        }
    </style>
    <style>
        body {
            overflow-x: hidden;
            background: #f2f0f5;
            padding: 15px 0px 10px 5px;
        }

        #searchmain {
            font-size: 12px;
        }

        #search {
            font-size: 12px;
            background: #548fc9;
            margin: 10px 10px 0 0;
            display: inline;
            width: 100%;
            color: #FFF;
            float: left
        }

        #search form span {
            height: 40px;
            line-height: 40px;
            padding: 0 0px 0 10px;
            float: left;
        }

        #search form input.text-word {
            height: 24px;
            line-height: 24px;
            width: 180px;
            margin: 8px 0 6px 0;
            padding: 0 0px 0 10px;
            float: left;
            border: 1px solid #FFF;
        }

        #search form input.text-but {
            height: 24px;
            line-height: 24px;
            width: 55px;
            background: url(images/main/list_input.jpg) no-repeat left top;
            border: none;
            cursor: pointer;
            font-family: "Microsoft YaHei", "Tahoma", "Arial", '宋体';
            color: #666;
            float: left;
            margin: 8px 0 0 6px;
            display: inline;
        }

        #search a.add {
            background: url(/loveshow/Public/Images/admin/add.jpg) no-repeat -3px 7px #548fc9;
            padding: 0 10px 0 26px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            font-weight: bold;
            color: #FFF;
            float: right
        }

        #search a:hover.add {
            text-decoration: underline;
            color: #d2e9ff;
        }

        #main-tab {
            border: 1px solid #eaeaea;
            background: #FFF;
            font-size: 12px;
        }

        #main-tab th {
            font-size: 12px;
            background: url(/loveshow/Public/Images/admin/list_bg.jpg) repeat-x;
            height: 32px;
            line-height: 32px;
        }

        #main-tab td {
            font-size: 12px;
            line-height: 40px;
        }

        #main-tab td a {
            font-size: 12px;
            color: #548fc9;
        }

        #main-tab td a:hover {
            color: #565656;
            text-decoration: underline;
        }

        .bordertop {
            border-top: 1px solid #ebebeb
        }

        .borderright {
            border-right: 1px solid #ebebeb
        }

        .borderbottom {
            border-bottom: 1px solid #ebebeb
        }

        .borderleft {
            border-left: 1px solid #ebebeb
        }

        .gray {
            color: #dbdbdb;
        }

        td.fenye {
            padding: 10px 0 0 0;
            text-align: right;
        }

        .bggray {
            background: #f9f9f9
        }
    </style>
    <script type="text/javascript">
    	
	    var editor;
	    KindEditor.ready(function(e){
	        editor = e.create("[name=dmcontent]",{
	            width:"700px",
	            height:"260px",
	            afterBlur:function(){this.sync();}
	        });
	    });
	    
    	 $(document).ready(function() {  
    		 $('input[type=checkbox]').click(function() {   
    			 $("input[name='tagid[]']").attr('disabled', true);   
    			 if ($("input[name='tagid[]']:checked").length >= 4) {    
    				 $("input[name='tagid[]']:checked").attr('disabled', false);   
    				 } else {    
    					 $("input[name='tagid[]']").attr('disabled', false);   
    					 }  
    			 }); 
    		 })
    </script>
</head>
<body>
<!--main_top-->
<table width="99%" border="0" cellspacing="0" cellpadding="0" id="searchmain">
    <tr>
        <td width="99%" align="left" valign="top">您的位置：发布需求</td>
    </tr>
    	<form method="post" id='form' action="/loveshow/index.php/Demand/add_demand" enctype="multipart/form-data">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="main-tab">
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求标题</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="dmtitle" type="text" size="25"/>
                </td>
                <td><span id="span1"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求价位</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                    <select name="spreadid">
		               <?php if(is_array($spread)): foreach($spread as $key=>$v): ?><option value="<?php echo ($v["spreadid"]); ?>"><?php echo ($v["spread"]); ?></option><?php endforeach; endif; ?>
		            </select>
                </td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求标签</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                    
		               <?php if(is_array($taginfo)): foreach($taginfo as $key=>$v): ?><input name="tagid[]" type="checkbox" value="<?php echo ($v["tagname"]); ?>"/><?php echo ($v["tagname"]); endforeach; endif; ?>
		            
                </td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求地点</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="address" type="text" size="25"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求人数</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="dmpeople" type="text"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求性别</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="dmsex" type="radio" value="1" checked/>男
		            <input name="dmsex" type="radio" value="2"/>女
		            <input name="dmsex" type="radio" value="0"/>不限
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求身高</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="text" name="dmheight"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">报名截止时间</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="applystime" type="text" size="25"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <!-- <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求认证类型</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="radio" name="dtttype" value="1" checked/>已认证
		            <input type="radio" name="dtttype" value="2"/>未认证
		            <input type="radio" name="dtttype" value="3"/>不限     
                </td>
                <td><span id="span2"></span></td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求类型</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="radio" name="dmtype" value="1" checked/>公司
		            <input type="radio" name="dmtype" value="2"/>个人
		            <input type="radio" name="dmtype" value="3"/>不限
                </td>
                <td><span id="span2"></span></td>
            </tr> -->

            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求海报</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="dmimg" type="file" size="25"/>
                </td>
            </tr>
            
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求详情</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<textarea name="dmcontent"></textarea>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            

            <tr>
                <td align="center" valign="middle" class="borderright borderbottom"></td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="submit" value="提交"/>
                	<span class="gray">&nbsp;|&nbsp;</span>
                	<input type="reset" value="取消">
                </td>
            </tr>
           
        </table>
		</form>


</table>

</body>
</html>